package ua.kharkov.khpi.tarasenko.bach.core.item;

import java.io.Serializable;

public class ItemViewBean implements Serializable {
	private static final long serialVersionUID = -2081475734927210195L;
	
	private int id;
	private String name;
	private int category;
	private boolean isAvailable;
	private double price;
	private String description;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getCategory() {
		return category;
	}

	public void setCategory(int category) {
		this.category = category;
	}
	
	public boolean getIsAvailable() {
		return isAvailable;
	}
	
	public void setIsAvailable(boolean isAvailable) {
		this.isAvailable = isAvailable;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("Id=");
		sb.append(this.id);
		sb.append("\n\t");
		sb.append("Name=");
		sb.append(this.name);
		sb.append("\n\t");
		sb.append("Category=");
		sb.append(this.category);
		sb.append("\n\t");
		sb.append("Is available=");
		sb.append(this.isAvailable);
		sb.append("\n\t");
		sb.append("Price=");
		sb.append(this.price);
		sb.append("\n\t");
		sb.append("Description:\n");
		sb.append(this.description);
		sb.append("\n");
		return sb.toString();
	}
}
